package com.woniuxy.controller;

import com.woniuxy.pojo.Basic;
import com.woniuxy.service.BasicService;
import com.woniuxy.service.ProductService;
import com.woniuxy.util.DataGridView;
import com.woniuxy.util.ResultDto;
import com.woniuxy.vo.BasicVo;
import com.woniuxy.vo.ProductVo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
public class ProductController {
    private Logger logger= LoggerFactory.getLogger(this.getClass());
    @Autowired
    private ProductService productService;
    //产品数据列表
    @GetMapping("/products")
    public DataGridView listProductAll(ProductVo productVo){
    return productService.selectCondition(productVo);
    }

}
